StrCmp (str1, str2), StrCmp (str1, str2, compare)

Basic and Crystal syntax.

Arguments
Returns

Whole Number where

Action

The StrCmp function compares two strings.

Typical Uses

Use this function to determine if two string values are identical.

Examples

The following examples are applicable to both Basic and Crystal syntax:

StrCmp("abcd", "aa")

Returns = 1.

StrCmp("abcd", "aa", 1)

Returns = 1.

StrCmp ("abcd", "ac")

Returns = -1.

StrCmp ("aa", "aa")

Returns = 0.

Comments

This function is designed to work like the Visual Basic function of the same name.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com